package chapter9;

public class Demo5 {
    public static void main(String[] args) {
        System.out.println(getRandomChar('a','z'));
    }

    /**
     * 获取任意字符之间胡随机字符
     * @return
     */
    public static char getRandomChar(char c1, char c2){
        return (char)(c1 + Math.random()*(c2 - c1 + 1));
    }
}
